CC = gcc
TARGET = main
SRC = $(wildcard *.c) 
OBJ = $(patsubst %.c, %.o , $(SRC))
FLAG = -std=c99 -w

$(TARGET):$(OBJ)
	$(CC) -o $@ $^ $(FLAG)
	
.PHONY:clean
clean: 	
	rm -rf *.o main